home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / ical.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  6KB  |  205 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  4.  
  5. <!-- iCalendar mode by Victor Engmark <victor.engmark@gmail.com> -->
  6.  
  7. <MODE>
  8.     <PROPS>
  9.         <PROPERTY NAME="lineComment" VALUE="COMMENT"/>
  10.  
  11.         <PROPERTY NAME="wordBreakChars" VALUE=",;:=+/?^*&"/>
  12.  
  13.         <!-- Indentation -->
  14.         <PROPERTY NAME="maxLineLen" VALUE="75"/>
  15.         <PROPERTY NAME="wrap" VALUE="hard"/>
  16.         <PROPERTY NAME="indentSize" VALUE="1"/>
  17.  
  18.         <!-- Use single space instead of tabs -->
  19.         <PROPERTY NAME="noTabs" VALUE="1"/>
  20.         <PROPERTY NAME="tabSize" VALUE="1"/>
  21.     </PROPS>
  22.     
  23.     <!-- General rules -->
  24.     <RULES IGNORE_CASE="FALSE">
  25.         <SPAN AT_LINE_START="TRUE" DELEGATE="VCALENDAR" NO_LINE_BREAK="FALSE" MATCH_TYPE="KEYWORD1">
  26.             <BEGIN>BEGIN:VCALENDAR</BEGIN>
  27.             <END>END:VCALENDAR</END>
  28.         </SPAN>
  29.     </RULES>
  30.  
  31.     <!-- Entire calendar -->
  32.     <RULES SET="VCALENDAR" IGNORE_CASE="FALSE">
  33.         <!-- Time zone settings -->
  34.         <SPAN AT_LINE_START="TRUE" DELEGATE="VTIMEZONE" NO_LINE_BREAK="FALSE" MATCH_TYPE="KEYWORD1">
  35.             <BEGIN>BEGIN:VTIMEZONE</BEGIN>
  36.             <END>END:VTIMEZONE</END>
  37.         </SPAN>
  38.  
  39.         <!-- Event -->
  40.         <SPAN AT_LINE_START="TRUE" DELEGATE="VEVENT" NO_LINE_BREAK="FALSE" MATCH_TYPE="KEYWORD1">
  41.             <BEGIN>BEGIN:VEVENT</BEGIN>
  42.             <END>END:VEVENT</END>
  43.         </SPAN>
  44.  
  45.         <!-- TODO (treated like event for now) -->
  46.         <SPAN AT_LINE_START="TRUE" DELEGATE="VEVENT" NO_LINE_BREAK="FALSE" MATCH_TYPE="KEYWORD1">
  47.             <BEGIN>BEGIN:VTODO</BEGIN>
  48.             <END>END:VTODO</END>
  49.         </SPAN>
  50.  
  51.         <!-- Journal (treated like event for now) -->
  52.         <SPAN AT_LINE_START="TRUE" DELEGATE="VEVENT" NO_LINE_BREAK="FALSE" MATCH_TYPE="KEYWORD1">
  53.             <BEGIN>BEGIN:VJOURNAL</BEGIN>
  54.             <END>END:VJOURNAL</END>
  55.         </SPAN>
  56.  
  57.         <KEYWORDS>
  58.             <KEYWORD2>CALSCALE</KEYWORD2>
  59.             <LITERAL2>GREGORIAN</LITERAL2>
  60.             <KEYWORD2>METHOD</KEYWORD2>
  61.             <KEYWORD2>PRODID</KEYWORD2>
  62.             <KEYWORD2>VERSION</KEYWORD2>
  63.             <LITERAL2>2.0</LITERAL2>
  64.         </KEYWORDS>
  65.     </RULES>
  66.  
  67.     <!-- Time zone settings -->
  68.     <RULES SET="VTIMEZONE" IGNORE_CASE="FALSE">
  69.         <!-- Daylight savings settings -->
  70.         <SPAN AT_LINE_START="TRUE" DELEGATE="DAYLIGHT" NO_LINE_BREAK="FALSE" MATCH_TYPE="KEYWORD1">
  71.             <BEGIN>BEGIN:DAYLIGHT</BEGIN>
  72.             <END>END:DAYLIGHT</END>
  73.         </SPAN>
  74.  
  75.         <!-- Time zone standard settings -->
  76.         <SPAN AT_LINE_START="TRUE" DELEGATE="STANDARD" NO_LINE_BREAK="FALSE" MATCH_TYPE="KEYWORD1">
  77.             <BEGIN>BEGIN:STANDARD</BEGIN>
  78.             <END>END:STANDARD</END>
  79.         </SPAN>
  80.  
  81.         <IMPORT DELEGATE="CUSTOM_KEYWORDS"/>
  82.  
  83.         <KEYWORDS>
  84.             <KEYWORD2>TZID</KEYWORD2>
  85.         </KEYWORDS>
  86.     </RULES>
  87.  
  88.     <!-- Daylight savings settings -->
  89.     <RULES SET="DAYLIGHT" IGNORE_CASE="FALSE">
  90.         <IMPORT DELEGATE="VCALENDAR_KEYWORDS"/>
  91.         <IMPORT DELEGATE="VTIMEZONE_KEYWORDS"/>
  92.     </RULES>
  93.  
  94.     <!-- Time zone standard settings -->
  95.     <RULES SET="STANDARD" IGNORE_CASE="FALSE">
  96.         <IMPORT DELEGATE="VCALENDAR_KEYWORDS"/>
  97.         <IMPORT DELEGATE="VTIMEZONE_KEYWORDS"/>
  98.     </RULES>
  99.     
  100.     <!-- Event -->
  101.     <RULES SET="VEVENT" IGNORE_CASE="FALSE">
  102.         <!-- Alarm -->
  103.         <SPAN AT_LINE_START="TRUE" DELEGATE="VALARM" NO_LINE_BREAK="FALSE" MATCH_TYPE="KEYWORD1">
  104.             <BEGIN>BEGIN:VALARM</BEGIN>
  105.             <END>END:VALARM</END>
  106.         </SPAN>
  107.  
  108.         <IMPORT DELEGATE="VCALENDAR_KEYWORDS"/>
  109.         <IMPORT DELEGATE="CUSTOM_KEYWORDS"/>
  110.         <IMPORT DELEGATE="VEVENT_KEYWORDS"/>
  111.  
  112.         <KEYWORDS>
  113.             <KEYWORD2>ATTENDEE</KEYWORD2>
  114.             <KEYWORD2>CATEGORIES</KEYWORD2>
  115.             <KEYWORD2>CLASS</KEYWORD2>
  116.             <LITERAL2>CONFIDENTIAL</LITERAL2>
  117.             <LITERAL2>PRIVATE</LITERAL2>
  118.             <LITERAL2>PUBLIC</LITERAL2>
  119.             <KEYWORD2>COMPLETED</KEYWORD2>
  120.             <KEYWORD2>CREATED</KEYWORD2>
  121.             <KEYWORD2>DESCRIPTION</KEYWORD2>
  122.             <KEYWORD2>DTEND</KEYWORD2>
  123.             <KEYWORD2>DTSTAMP</KEYWORD2>
  124.             <KEYWORD2>DTSTART</KEYWORD2>
  125.             <KEYWORD2>DUE</KEYWORD2>
  126.             <KEYWORD2>LAST-MODIFIED</KEYWORD2>
  127.             <KEYWORD2>LOCATION</KEYWORD2>
  128.             <KEYWORD2>PERCENT-COMPLETE</KEYWORD2>
  129.             <KEYWORD2>PRIORITY</KEYWORD2>
  130.             <KEYWORD2>RECURRENCE-ID</KEYWORD2>
  131.             <KEYWORD3>RSVP</KEYWORD3>
  132.             <LITERAL3>FALSE</LITERAL3>
  133.             <LITERAL3>TRUE</LITERAL3>
  134.             <KEYWORD2>SEQUENCE</KEYWORD2>
  135.             <KEYWORD2>STATUS</KEYWORD2>
  136.             <KEYWORD2>SUMMARY</KEYWORD2>
  137.             <KEYWORD2>TRANSP</KEYWORD2>
  138.             <LITERAL2>OPAQUE</LITERAL2>
  139.             <LITERAL2>TRANSPARENT</LITERAL2>
  140.             <KEYWORD2>UID</KEYWORD2>
  141.             <KEYWORD2>URL</KEYWORD2>
  142.             <KEYWORD3>TZID</KEYWORD3>
  143.         </KEYWORDS>
  144.     </RULES>
  145.  
  146.     <!-- Alarm -->
  147.     <RULES SET="VALARM" IGNORE_CASE="FALSE">
  148.         <IMPORT DELEGATE="RIGHT"/>
  149.         <IMPORT DELEGATE="CUSTOM_KEYWORDS"/>
  150.         <IMPORT DELEGATE="VEVENT_KEYWORDS"/>
  151.  
  152.         <KEYWORDS>
  153.             <KEYWORD2>ACTION</KEYWORD2>
  154.             <KEYWORD2>DESCRIPTION</KEYWORD2>
  155.             <KEYWORD2>TRIGGER</KEYWORD2>
  156.         </KEYWORDS>
  157.     </RULES>
  158.  
  159.     <!-- Colon + right side text -->
  160.     <RULES SET="RIGHT" IGNORE_CASE="FALSE">
  161.         <EOL_SPAN AT_LINE_START="FALSE" MATCH_TYPE="OPERATOR" DELEGATE="RIGHT_TEXT">:</EOL_SPAN>
  162.     </RULES>
  163.  
  164.     <!-- Right side of the colon -->
  165.     <RULES SET="RIGHT_TEXT" IGNORE_CASE="FALSE" DEFAULT="LITERAL4">
  166.     </RULES>
  167.  
  168.     <RULES SET="VCALENDAR_KEYWORDS" IGNORE_CASE="FALSE">
  169.         <KEYWORDS>
  170.             <KEYWORD2>RRULE</KEYWORD2>
  171.             <KEYWORD4>BYDAY</KEYWORD4>
  172.             <KEYWORD4>BYMONTH</KEYWORD4>
  173.             <KEYWORD4>FREQ</KEYWORD4>
  174.             <KEYWORD4>INTERVAL</KEYWORD4>
  175.             <LITERAL4>YEARLY</LITERAL4>
  176.         </KEYWORDS>
  177.     </RULES>
  178.  
  179.     <RULES SET="VTIMEZONE_KEYWORDS" IGNORE_CASE="FALSE">
  180.         <KEYWORDS>
  181.             <KEYWORD2>DTSTART</KEYWORD2>
  182.             <KEYWORD2>TZNAME</KEYWORD2>
  183.             <KEYWORD2>TZOFFSETFROM</KEYWORD2>
  184.             <KEYWORD2>TZOFFSETTO</KEYWORD2>
  185.         </KEYWORDS>
  186.     </RULES>
  187.  
  188.     <RULES SET="VEVENT_KEYWORDS" IGNORE_CASE="FALSE">
  189.         <KEYWORDS>
  190.             <LITERAL2>CONFIRMED</LITERAL2>
  191.             <LITERAL2>PRIVATE</LITERAL2>
  192.             <KEYWORD3>VALUE</KEYWORD3>
  193.             <LITERAL3>DATE</LITERAL3>
  194.             <LITERAL3>DURATION</LITERAL3>
  195.         </KEYWORDS>
  196.     </RULES>
  197.  
  198.     <!-- Custom keywords -->
  199.     <RULES SET="CUSTOM_KEYWORDS" IGNORE_CASE="FALSE">
  200.         <SEQ_REGEXP HASH_CHAR="X" AT_LINE_START="TRUE" TYPE="INVALID">X-[A-Za-z-]+</SEQ_REGEXP>
  201.     </RULES>
  202. </MODE>
  203.  
  204.             
  205.